package Xuanke.test;
import Xuanke.entities.Course;
import Xuanke.entities.Student;
import Xuanke.entities.Teacher;
public class Main {
    public static void main(String[] args) {
        Teacher t1 = new Teacher("T2024001", "李华", "男");
        Teacher t2 = new Teacher("T2024002", "王五", "女");
        Course c1 = new Course("C2024001","Java程序设计","计算机楼301","周一3-4节","3","T2024001","李华");
        Course c2 = new Course("C2024002","数据库原理","计算机楼205","周三5-6节","3","T2024002","王五");
        Student s1 = new Student("S2024001", "张三", "男");
        Student s2 = new Student("S2024002", "李四", "女");
        t1.openCourse(c1);
        t2.openCourse(c2);
        s1.selectCourse(c1);
        s1.selectCourse(c2);
        s1.dropCourse(c1);
        s2.selectCourse(c2);
        t1.printInfo();
        s1.printInfo();
        s1.printCourseSchedule();
        s2.printCourseSchedule();
    }
}